package com.ssf.framework.shiro.iface;

import com.raiyee.hi.boss.shiro.domain.User;
import org.apache.shiro.web.filter.mgt.FilterChainManager;

import java.util.Set;

/**
 * Created by liolay on 15-7-27.
 */
public abstract class SubjectService {

    private FilterChainManager filterChainManager;

    public FilterChainManager getFilterChainManager() {
        return filterChainManager;
    }

    public void setFilterChainManager(FilterChainManager filterChainManager) {
        this.filterChainManager = filterChainManager;
    }

    public abstract Set<String> findRoles(String username);

    public abstract Set<String> findPermissions(String username);

    public abstract User findByUsername(String username);
}
